import { requestClient } from '#/api/request';

/**
 * 获取仓库列表
 */
export async function getErpWarehouseList(params: any) {
  return requestClient.get('/admin/Erpwarehouse/index', params);
}

/**
 * 仓库添加
 */
export async function doErpWarehouseAdd(params: any) {
  return requestClient.post('/admin/Erpwarehouse/add', params);
}

/**
 * 仓库编辑
 */
export async function doErpWarehouseEdit(params: any) {
  return requestClient.post('/admin/Erpwarehouse/edit', params);
}

/**
 * 仓库删除
 */
export async function doErpWarehouseDelete(params: any) {
  return requestClient.post('/admin/Erpwarehouse/del', params);
}

/**
 * 仓库详情
 */
export async function doErpWarehouseInfo(params: any) {
  return requestClient.get('/admin/Erpwarehouse/edit', params);
}

/**
 * 获取仓库角色类别列表
 */
export async function getWarehouseRoleCategoryList(params: any) {
  return requestClient.get('/admin/WarehouseRoleCategory/index', params);
}

/**
 * 获取价格类型列表
 */
export async function getErpPriceTypeList(params: any) {
  return requestClient.get('/admin/ErpPriceType/index', params);
}

